/*
========================================================================
 Name        : Mp3Player.h
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef MP3PLAYER_H_
#define MP3PLAYER_H_

#include <mdaAudioSamplePlayer.h>

class CMp3Player : public CBase, public MMdaAudioPlayerCallback
	{
public:
	static CMp3Player* NewL();
	~CMp3Player();

public:
	void MapcInitComplete(TInt aError, 
			const TTimeIntervalMicroSeconds& aDuration);
	void MapcPlayComplete(TInt aError);
	
public:
	void Play();
	
private:
	CMp3Player();
	void ConstructL();

private:
	CMdaAudioPlayerUtility* iPlayer;
	TInt iState;
	
	enum SState
		{
		ENotReady,
		EReady,
		EPlaying
		};
	};

#endif /*MP3PLAYER_H_*/
